package com.cml.getway.common.exception;

import com.cml.getway.common.enums.ResponseCode;
import lombok.Getter;

/**
 * 姓名：陈茂林
 * 时间：2024/1/29
 * 描述：
 */
public class GetwayConnectException extends GetwayBaseException{
    private static final long serialVersionUID = -8503239867913964958L;

    @Getter
    private final String uniqueId;

    @Getter
    private final String requestUrl;

    public GetwayConnectException(String uniqueId, String requestUrl) {
        this.uniqueId = uniqueId;
        this.requestUrl = requestUrl;
    }

    public GetwayConnectException(Throwable cause, String uniqueId, String requestUrl, ResponseCode code) {
        super(code.getMessage(), cause, code);
        this.uniqueId = uniqueId;
        this.requestUrl = requestUrl;
    }
}
